package vernhe;


public class Main {
    static void test1() {
        //测试删除
        Integer data[] = new Integer[]{
                7,4,9,2,5,8,11,3,12,1
        };
        BinarySearchTree<Integer> bst = new BinarySearchTree<>();
        for (int i = 0; i < data.length; i++) {
            bst.add(data[i]);
        }
        System.out.println(bst);
        bst.remove(7);

        System.out.println(bst);
    }
    public static void main(String[] args) {
        test1();
    }
}
